{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}

{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<form method="post" action="" name="listForm">
	<input type="hidden" name="goods_id" value="{$goods_id}" />
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1" width="100%">
			<tr>
				<th>&nbsp;</th>
				<th>
					<a href="javascript:listTable.sort('card_name');">贺卡名称</a>{$sort_card_name}
				</th>
				<th>
					<a href="javascript:listTable.sort('card_fee');">贺卡费用</a>{$sort_card_fee}
				</th>
				<th>
					<a href="javascript:listTable.sort('free_money');">贺卡免费额度</a>{$sort_free_money}
				</th>
				<th>
					贺卡描述
				</th>
				<th>
					操作
				</th>
			</tr>
			<volist name="card_list" id="card">
			<tr>
				<td align="center">
				<if condition="$card['card_img']">
					<a href = "../data/cardimg/{$card.card_img}" target="_brank">
						<img src="__PUBLIC__/Image/admin/picflag.gif" width="16" height="16" border="0" alt="" />
					</a>
				<else/>
					<img src="__PUBLIC__/Image/admin/picnoflag.gif" width="16" height="16" border="0" alt="" />
				</if>
				</td>
				<td align="left">
					<a onclick="listTable.edit(this, 'edit_card_name', {$card.card_id})">{$card.card_name}</a>
				</td>
				<td align="right">
					<a onclick="listTable.edit(this, 'edit_card_fee', {$card.card_id})">{$card.card_fee}</a>
				</td>
				<td align="right">
					<a onclick="listTable.edit(this, 'edit_free_money', {$card.card_id})">{$card.free_money}</a>
				</td>
				<td align="left">
					<if condition="$card['card_desc']">
						{$card.card_desc}
					<else/>
						N/A
					</if>
				</td>
				<td align="center" nowrap="true" valign="top">
					<a href="__URL__/mod_card?id={$card.card_id}" title="编辑">
						<img src="__PUBLIC__/Image/admin/icon_edit.gif" border="0" height="16" width="16">
					</a>
					<a href="__URL__/remove_card?id={$card.card_id}" onclick="listTable.remove({$card.card_id}, '确定删除')" title="移除">
						<img src="__PUBLIC__/Image/admin/icon_drop.gif" border="0" height="16" width="16">
					</a>
				</td>
			</tr>
			</volist>
		</table>
	</div>
</form>

